翻訳と辞書
Words near each other
・ Loop representation in gauge theories and quantum gravity
・ Loop Retail Historic District
・ Loop rock
・ Loop scheduling
・ Loop Service (Portland Streetcar)
・ Loop space
・ Loop splitting
・ Loop start
・ Loop subdivision surface
・ Loop the Loop (Coney Island)
・ Loop the Loop (Olentangy Park)
・ Loop the Loop (Young's Million Dollar Pier)
・ Loop theorem
・ Loop tiling
・ Loop unrolling
Loop unswitching
・ Loop v. Litchfield
・ Loop variant
・ Loop, Germany
・ Loop, Texas
・ Loop, West Virginia
・ Loop-erased random walk
・ Loop-invariant code motion
・ Loop-mediated isothermal amplification
・ Loop-O-Plane
・ Loop-switch sequence
・ Loop-the-Loop (disambiguation)
・ Loop-the-Loop (song)
・ Loopallu Festival
・ Loopback


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Loop unswitching : ウィキペディア英語版
Loop unswitching

Loop unswitching is a compiler optimization. It moves a conditional inside a loop outside of it by duplicating the loop's body, and placing a version of it inside each of the if and else clauses of the conditional. This can improve the parallelization of the loop. Since modern processors can operate fast on vectors this increases the speed.
Here is a simple example. Suppose we want to add the two arrays ''x'' and ''y'' and also do something depending on the variable ''w''. We have the following C code:

int i, w, x(), y();
for (i = 0; i < 1000; i++)

The conditional inside this loop makes it difficult to safely parallelize this loop. When we unswitch the loop, this becomes:

int i, w, x(), y();
if (w) else

While the loop unswitching may double the amount of code written, each of these new loops may now be separately optimized.
Loop unswitching was introduced in gcc in version 3.4.


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Loop unswitching」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.